Skip to content

Conversation

@jnsdls
Copy link
Member

@jnsdls jnsdls commented Nov 8, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

[email protected]

Minor Changes

  • #5354 a1fc436 Thanks @joaquim-verges! - Adds EIP1193 adapters that allow conversion between Thirdweb wallets and EIP-1193 providers:

    • EIP1193.fromProvider(): Creates a Thirdweb wallet from any EIP-1193 compatible provider (like MetaMask, WalletConnect)
    • EIP1193.toProvider(): Converts a Thirdweb wallet into an EIP-1193 provider that can be used with any web3 library

    Key features:

    • Full EIP-1193 compliance for seamless integration
    • Handles account management (connect, disconnect, chain switching)
    • Supports all standard Ethereum JSON-RPC methods
    • Comprehensive event system for state changes
    • Type-safe interfaces with full TypeScript support

    Examples:

    // Convert MetaMask's provider to a Thirdweb wallet
    const wallet = EIP1193.fromProvider({
      provider: window.ethereum,
      walletId: "io.metamask",
    });
    
    // Use like any other Thirdweb wallet
    const account = await wallet.connect({
      client: createThirdwebClient({ clientId: "..." }),
    });
    
    // Convert a Thirdweb wallet to an EIP-1193 provider
    const provider = EIP1193.toProvider({
      wallet,
      chain: ethereum,
      client: createThirdwebClient({ clientId: "..." }),
    });
    
    // Use with any EIP-1193 compatible library
    const accounts = await provider.request({
      method: "eth_requestAccounts",
    });
    
    // Listen for events
    provider.on("accountsChanged", (accounts) => {
      console.log("Active accounts:", accounts);
    });

Patch Changes

@thirdweb-dev/[email protected]

Patch Changes


PR-Codex overview

This PR focuses on updating the versions of @thirdweb-dev/service-utils and thirdweb, along with their changelogs. It includes new features, improvements, and some deletions of changeset files.

Detailed summary

  • Updated @thirdweb-dev/service-utils version from 0.4.47 to 0.4.48
    • Added nebula service scope
  • Updated thirdweb version from 5.67.0 to 5.68.0
    • Added EIP1193 adapters for wallet and provider conversion
    • Improved transaction handling and gas cost estimations
    • Added global transaction decorator and better EIP712 support
    • Fixed transaction signing issues and added chain ID to analytics tracking

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Nov 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 3:53pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 3:53pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 3:53pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 3:53pm

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 8, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 44.8 KB (0%) 896 ms (0%) 3.9 s (-14.18% 🔽) 4.8 s
thirdweb (cjs) 105.11 KB (0%) 2.2 s (0%) 9.4 s (+47.49% 🔺) 11.5 s
thirdweb (minimal + tree-shaking) 5.72 KB (0%) 115 ms (0%) 194 ms (-15.2% 🔽) 308 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 79 ms (+36.48% 🔺) 89 ms
thirdweb/react (minimal + tree-shaking) 18.78 KB (0%) 376 ms (0%) 488 ms (-37.1% 🔽) 863 ms

@codecov
Copy link

codecov bot commented Nov 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.52%. Comparing base (a1fc436) to head (66efdd6).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5352      +/-   ##
==========================================
- Coverage   45.52%   45.52%   -0.01%     
==========================================
  Files        1070     1070              
  Lines       55665    55665              
  Branches     4039     4030       -9     
==========================================
- Hits        25342    25341       -1     
- Misses      29636    29637       +1     
  Partials      687      687              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from a1fc436
packages 40.62% <ø> (-0.01%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

see 1 file with indirect coverage changes

@jnsdls jnsdls force-pushed the changeset-release/main branch from d6de5ac to 4ff2e20 Compare November 8, 2024 01:28
@jnsdls jnsdls force-pushed the changeset-release/main branch from 4ff2e20 to 6f72b45 Compare November 8, 2024 01:49
@jnsdls jnsdls force-pushed the changeset-release/main branch from 6f72b45 to 5692f1f Compare November 8, 2024 06:17
@jnsdls jnsdls force-pushed the changeset-release/main branch from 5692f1f to 0a5ad43 Compare November 8, 2024 21:01
@jnsdls jnsdls force-pushed the changeset-release/main branch from 3c218bc to 0b8d5c8 Compare November 12, 2024 20:31
@jnsdls jnsdls force-pushed the changeset-release/main branch from 0b8d5c8 to 6b70965 Compare November 12, 2024 21:13
@jnsdls jnsdls force-pushed the changeset-release/main branch from 6b70965 to 612fdab Compare November 12, 2024 22:30
@jnsdls jnsdls force-pushed the changeset-release/main branch from 612fdab to 30ed2ba Compare November 12, 2024 23:04
@jnsdls jnsdls requested a review from arcoraven as a code owner November 12, 2024 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants